/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package edu.yonsei.iwb.sdt.ontology;

import com.hp.hpl.jena.rdf.model.Property;
import com.hp.hpl.jena.rdf.model.Resource;
import com.hp.hpl.jena.rdf.model.ResourceFactory;

/**
 *
 * @author DK
 */
public class PropertyArc {
    
    private String property;
    private boolean direction;
    
    public PropertyArc(String r, boolean d){        
        this.property = r;
        this.direction = d;
    }

    public String getProperty() {
        return property;
    }

    public boolean getDirection() {
        return direction;
    }
    
    public boolean equals(String r){
        return property.equals(r);        
    }
    
    @Override
    public String toString(){
        StringBuilder sb = new StringBuilder();
        if(this.direction){
            sb.append(this.property);
        }else{
            sb.append(this.property).append("￣");
        }        
        return sb.toString();
    }
    
}
